package com.yy.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.yy.mapper.MetaDao;
import com.yy.model.MetaEntity;
import com.yy.service.MetaService;


/**
 * 网页信息
 * 
 * @author yy
 * @email 
 * @date 2017-07-25 17:04:00
 */
@Service("metaService")
public class MetaServiceImpl implements MetaService {
	@Autowired
	private MetaDao metaDao;
	
	@Override
	public MetaEntity queryObject(Integer id){
		return metaDao.queryObject(id);
	}
	
	@Override
	public List<MetaEntity> queryList(Map<String, Object> map){
		return metaDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return metaDao.queryTotal(map);
	}
	
	@Override
	public void save(MetaEntity meta){
		meta.setCreateTime(new Date());
		metaDao.save(meta);
	}
	
	@Override
	public void update(MetaEntity meta){
		meta.setCreateTime(new Date());
		metaDao.update(meta);
	}
	
	@Override
	public void delete(Integer id){
		metaDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		metaDao.deleteBatch(ids);
	}
	
}
